package cn.com.ejiakanghu.dto;

import org.linlinjava.litemall.core.util.JacksonUtil;
import org.linlinjava.litemall.db.domain.LitemallTopic;

import java.util.List;

public class AppSpecialInfo {

    /**
     * 专题ID
     */
    private String id;

    /**
     * 专题分类名称
     */
    private String name;

    /**
     * 专题红色标签
     */
    private String tag;

    private String picUrl;

    private List<GoodsBaseData> goodsList;

    public AppSpecialInfo() {
    }

    public AppSpecialInfo(LitemallTopic litemallTopic, List<GoodsBaseData> goodsList) {
        this.id = litemallTopic.getId()+"";
        this.name = litemallTopic.getTitle();
        this.tag = litemallTopic.getSubtitle();
        this.picUrl = litemallTopic.getPicUrl();
        this.goodsList = goodsList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public List<GoodsBaseData> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsBaseData> goodsList) {
        this.goodsList = goodsList;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
}
